package com.ruoyi.test.service.impl;

import com.ruoyi.test.domain.MigrationData;
import com.ruoyi.test.mapper.MigrationDataMapper;
import com.ruoyi.test.service.IMigrationDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 物流Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-13
 */
@Service
public class MigrationDataServiceImpl implements IMigrationDataService
{
    @Autowired
    private MigrationDataMapper migrationDataMapper;

    /**
     * 查询物流
     * 
     * @param id 物流主键
     * @return 物流
     */
    @Override
    public MigrationData selectMigrationDataById(Long id)
    {
        return migrationDataMapper.selectMigrationDataById(id);
    }

    /**
     * 查询物流列表
     * 
     * @param migrationData 物流
     * @return 物流
     */
    @Override
    public List<MigrationData> selectMigrationDataList(MigrationData migrationData)
    {
        return migrationDataMapper.selectMigrationDataList(migrationData);
    }

    /**
     * 新增物流
     * 
     * @param migrationData 物流
     * @return 结果
     */
    @Override
    public int insertMigrationData(MigrationData migrationData)
    {
        return migrationDataMapper.insertMigrationData(migrationData);
    }

    /**
     * 修改物流
     * 
     * @param migrationData 物流
     * @return 结果
     */
    @Override
    public int updateMigrationData(MigrationData migrationData)
    {
        return migrationDataMapper.updateMigrationData(migrationData);
    }

    /**
     * 批量删除物流
     * 
     * @param ids 需要删除的物流主键
     * @return 结果
     */
    @Override
    public int deleteMigrationDataByIds(Long[] ids)
    {
        return migrationDataMapper.deleteMigrationDataByIds(ids);
    }

    /**
     * 删除物流信息
     * 
     * @param id 物流主键
     * @return 结果
     */
    @Override
    public int deleteMigrationDataById(Long id)
    {
        return migrationDataMapper.deleteMigrationDataById(id);
    }
}
